/**
 * ReportGear(2011)
 */
package net.abbp.report.model.headerfooter;

import javax.swing.Icon;

import net.abbp.report.model.cell.style.FontStyle;
import net.abbp.swing.util.ImageUtils;

/**
 * 页眉页脚元素-总页数
 * 
 * @version 1.0 2011-4-22
 * @author <a herf="lexloo@gmail.com">lexloo</a>
 * @since Report 1.0
 */
public class TotalPagesHFElement extends TextHFElement {
    public TotalPagesHFElement() {
        this(FontStyle.DEFAULT_STYLE);
    }

    public TotalPagesHFElement(FontStyle fontStyle) {
        super("", fontStyle);

    }

    @Override
    public String getCaption() {
        return "总页数";
    }

    @Override
    public Icon getIcon() {
        return ImageUtils.readIcon("dialog/headerfooter/pages.png");
    }
}
